package Builder.tow;

/**
 * @ProjectName: 23种设计模式
 * @Package: Builder.tow
 * @ClassName: Main
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/19 10:15
 * @Version: 1.0
 */
public class Main {
    public static void main(String[] args) {
        TerrainBuilder builder = new ComplexTerrainBilder();
        Terrain t = builder
                .buildFort()
                .buildMine()
                .buildWall()
                .build();
        
        Person p = new Person.PersonBuilder()
                .basicInfo(1,"zhangsan", 18)
                .score(20)
                .weight(200)
                .loc("bj", "32")
                .build();
    }
}
